<include file="../header" />
<body class="J_scroll_fixed">
    <div class="wrap J_check_wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('live/index')}">直播信息</a></li>
            <li><a href="{:U('live/add')}">添加直播</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>名称</th>                                       
                    <th>标题</th>
                    <th>标题图片</th>
                    <th>直播房间号</th> 
                    <th>是否比赛</th>
                    <th>创建时间</th>
                    <th>管理操作</th>
                </tr>
            </thead>
            <tbody>

            <foreach name="lives" item="vo">
                <tr>
                    <td>{$vo.live_id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.title}</td>
                    <td><img src='$vo["title_image"]'></td>
                    <td>{$vo.room_id}</td>
                    <td>{$vo.is_show}</td>
                    <td>{$vo.create_time}</td>

                    <td>
                        <a href='{:U("live/edit",array("id"=>$vo["live_id"]))}'>修改</a>
                        |
                        <a class="J_ajax_del" href="{:U('live/delete',array('id'=>$vo['live_id']))}">删除</a>
                    </td>

                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>